package com.agadmin.exception;

import java.io.Serializable;

public class ResponseException extends RuntimeException implements Serializable {

    private static final long serialVersionUID = 1L;

    private ResponseExceptionEnum exceptionEnum;

    private String errorMsg;

    public ResponseException(ResponseExceptionEnum exceptionEnum, String errorMsg) {
        this.exceptionEnum = exceptionEnum;
        this.errorMsg = errorMsg;
    }

    public ResponseExceptionEnum getExceptionEnum() {
        return exceptionEnum;
    }

    public void setExceptionEnum(ResponseExceptionEnum exceptionEnum) {
        this.exceptionEnum = exceptionEnum;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
